package com.action;

public class UserSignoutAction extends BaseAction
{
	String operation;

	public String getOperation() {
		return operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	@Override
	public String execute() throws Exception 
	{
		if("logout".equalsIgnoreCase(operation))
		{
			session.invalidate();
			addActionError("You Are Successfully Logout");
			return "logout";
		}
		return SUCCESS;
	}

	@Override
	public String input() throws Exception 
	{
		return super.input();
	}
	
	
	
	

}
